package cn.iocoder.yudao.module.handguard.controller.admin.order.vo;

import cn.iocoder.yudao.module.handguard.controller.admin.product.vo.ProductBaseVO;
import cn.iocoder.yudao.module.handguard.controller.admin.product.vo.ProductRespVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 订单 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderUserRespVO extends OrderBaseVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "945")
    private Long id;

    private Long agentId;

    private Long warrantId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "业务员信息")
    private UserResVo salesman;

    @Schema(description = "权证端信息")
    private UserResVo warrant;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "手机")
    private String mobile;

    @Schema(description = "头像")
    private String avatar;


    @Schema(description = "产品信息")
    private List<ProductRespVO> product;

    @Schema(description = "产品名称")
    private String productNameStr;
}
